package zzj.campus_book_sharing_platform.Service.impl;

import org.springframework.stereotype.Service;
import zzj.campus_book_sharing_platform.Dao.auditDao;
import zzj.campus_book_sharing_platform.Entity.Audit;
import zzj.campus_book_sharing_platform.Service.AuditService;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AuditServiceImpl implements AuditService {
    @Resource
    private auditDao auditDao;

    @Override
    public int insert(Audit audit) {
        return auditDao.insert(audit);
    }

    @Override
    public List<Audit> queryAll() {
        return auditDao.queryAll();
    }

    @Override
    public int updateById(int auditId, int userId, String statusAudit) {
        return auditDao.updateById(auditId,userId,statusAudit);
    }
}
